package com.example.xm.mapper;

import com.example.xm.entity.Fenlei;
import com.example.xm.entity.JinduVO;
import com.example.xm.entity.Video;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface VideoMapper {
    List<Video> selectList(String name,Integer cur,Integer cid,Integer lid);

    void insert(Video fenlei);

    Video selectByName(String name);

    void updateByPrimaryKeySelective(Video fenlei);

    void delete(int[] intArray);

    Video getById(Integer id);

    void updateNum(Integer vid, String ding, int i);

    List<Integer> selectCategoryList(Integer uid);

    List<Integer> selectUserList(@Param("list") List<Integer> categoryList);

    List<Integer> selectCidList(@Param("list") List<Integer> userList);

    List<Video> selectVideoListByCIds(@Param("list") List<Integer> cids);

    List<Video> getJindu(Integer uid);

    List<JinduVO> getJinduByVid(Integer vid);
}
